package io.terminus.spzx.model.entity.system;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 系统菜单Entity实体类
 * @Date 2024-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统菜单实体类")
public class SysMenu extends BaseEntity {

    @Schema(description = "父节点id")
    private Long parentId;

    @Schema(description = "节点标题")
    private String title;

    @Schema(description = "组件名称")
    private String component;

    @Schema(description = "排序值")
    private Integer sortValue;

    @Schema(description = "状态(0:禁止,1:正常)")
    private Integer status;

    /**
     * 下级列表
     */
    @Schema(description = "子节点")
    private List<SysMenu> children;
}